package com.yuhang.demo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuhang.demo.entity.RoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author yyh
 * @email yyh@demo.com
 * @date 2021-07-16 16:45:01
 */
@Mapper
public interface RoleDao extends BaseMapper<RoleEntity> {

    /**
     * 批量创建
     */
    int insertRole(@Param("list") List<RoleEntity> role);

    void saveRole(@Param("role") RoleEntity role);
}
